






//
//  NZhaopinCell.m
//  nncloud
//
//  Created by macfai on 2018/11/28.
//  Copyright © 2018 macfai. All rights reserved.
//

#import "NZhaopinCell.h"

@implementation NZhaopinCell

- (void)awakeFromNib {
    
    [super awakeFromNib];
    self.selectionStyle = 0;
    
//    self.name.font =  [UIFont boldSystemFontOfSize:15];
    //箭头
    self.img = [[UIImageView alloc]initWithFrame:CGRectMake(ScreenWidth-35, 20.f, 10.f, 18.f)];
    self.img.image = WDImgName(@"箭头");
    [self addSubview:self.img];
    self.img.hidden = YES;
    // Initialization code
}

#pragma mark - 求职信息
///求职信息
- (void)setModel:(NQiuzhiModel *)model{
    
    _model = model;
    //名字
    self.name.text = model.resumeName;
    
    //行业意向
    self.area.text = [NSString stringWithFormat:@"行业意向:%@",[self industryIntention:model.resumeIndustryIntention]];
    
    //职位意向
    self.company.text = [NSString stringWithFormat:@"职位意向:%@",[self positionIntention:model.resumeJobIntention]];
    
    //毕业院校
    self.salary.text = model.resumeSchool;
    
    //工作经验
    self.date.text = [NSString stringWithFormat:@"%@年经验",model.resumeWorkExperience];
    //时间
    self.otherLabel.text = [[ToolKit getTimeFromTimesTamp:model.resumeUpdateTime]substringToIndex:10];
    
    
}
//行业意向  0:不限，1:机械装备制造，2:电子信息，3:铝深加工，4:食品加工，5:生物制药，6:清洁能源，7:其他行业
-(NSString *)industryIntention:(NSString *)type{
    
    switch ([type integerValue]) {
        case 0:
            return @"不限";
            break;
        case 1:
            return @"机械装备制造";
            break;
        case 2:
            return @"电子信息";
            break;
        case 3:
            return @"铝深加工";
            break;
        case 4:
            return @"食品加工";
            break;
        case 5:
            return @"生物制药";
            break;
        case 6:
            return @"清洁能源";
            break;
        case 7:
            return @"其他行业";
            break;
            
        default:
            break;
    }
    return @"";
}

//职位意向 0:不限，1:经营管理类，2:行政/人事/后勤类，3:财务/税务/审计类，4:生产制造/工工管理类，5:市场/销售类，6:客服/计算机服务类，7:计算机/互联网类，8:科研/咨询类，9:证券/金融/投资类，10:其他类
-(NSString *)positionIntention:(NSString *)type{
    switch ([type integerValue]) {
        case 0:
            return @"不限";
            break;
        case 1:
            return @"经营管理类";
            break;
        case 2:
            return @"行政/人事/后勤类";
            break;
        case 3:
            return @"财务/税务/审计类";
            break;
        case 4:
            return @"生产制造/工工管理类";
            break;
        case 5:
            return @"市场/销售类";
            break;
        case 6:
            return @"客服/计算机服务类";
            break;
        case 7:
            return @"计算机/互联网类";
            break;
        case 8:
            return @"科研/咨询类";
            break;
        case 9:
            return @"证券/金融/投资类";
            break;
        case 10:
            return @"其他";
            break;
            
        default:
            break;
    }
    return @"";
}

#pragma mark - 招聘信息
///企业招聘信息
- (void)setZhaopinModel:(NQiuzhiModel *)zhaopinModel{
    _zhaopinModel  = zhaopinModel;
    self.name.text = zhaopinModel.empInfoTitle;
    self.date.text = [[ToolKit getTimeFromTimesTamp:zhaopinModel.empInfoUpdateTime]substringToIndex:10];
    self.area.text = zhaopinModel.empInfoArea;
    self.company.text = zhaopinModel.empInfoCompany;
    self.salary.text = zhaopinModel.empinfoPrice;
}

#pragma mark - 工业企业信息汇总
- (void)setQModel:(NMyQiyeModel *)qModel{
    _qModel = qModel;
     self.name.text = qModel.enterpriseName;
    self.date.text = qModel.enterpriseType;
    self.area.text = [NSString stringWithFormat:@"地区：%@",qModel.enterpriseRegion];
    self.company.text = [NSString stringWithFormat:@"行业：%@",qModel.enterpriseIndustry];
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
